package cn.itcast.up32.up_web.repo;

import cn.itcast.up32.up_web.bean.po.TagPo;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface TagRepo extends JpaRepository<TagPo, Long> {
    //根据标签的名字和级别进行查询
    TagPo findByNameAndLevelAndPid(String name,Integer level,Long pid);


    List<TagPo> findByLevel(Integer level);

    List<TagPo> findByPid(Long pid);
}
